package com.atguigu.sprinngcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @Author csc
 * @Date 2023/3/13 0013 13:59
 * @Version 1.0
 */
@RestController
@Slf4j
public class PaymentConsulContrller {

    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/payment/consul")
    public String paymentConsul(){
        return "springcloud with consul:"+"+serverPort+"+serverPort+"\t"+ UUID.randomUUID().toString();
    }//end paymentConsul







}
